package App.Utility;

import App.Model.ProjectConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by xw on 2019/4/28.
 */

@Component
public class CommonHelper {

    @Autowired
    private ProjectConfig _projectConfig;


    public String getUploadFilePath() {

        String _filePath = _projectConfig.getUploadfilepath_linux();
        String os = System.getProperty("os.name");
        if (os.toLowerCase().startsWith("win")) {
            _filePath = _projectConfig.getUploadfilepath_windows();
        }
        return _filePath;
    }

}
